package com.bootdo.sell.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.sell.dao.CpDao;
import com.bootdo.sell.domain.CpDO;
import com.bootdo.sell.service.CpService;



@Service
public class CpServiceImpl implements CpService {
	@Autowired
	private CpDao cpDao;
	
	@Override
	public CpDO get(Integer cid){
		return cpDao.get(cid);
	}
	
	@Override
	public List<CpDO> list(Map<String, Object> map){
		return cpDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return cpDao.count(map);
	}
	
	@Override
	public int save(CpDO cp){
		return cpDao.save(cp);
	}
	
	@Override
	public int update(CpDO cp){
		return cpDao.update(cp);
	}
	
	@Override
	public int remove(Integer cid){
		return cpDao.remove(cid);
	}
	
	@Override
	public int batchRemove(Integer[] cids){
		return cpDao.batchRemove(cids);
	}
	
}
